27. The criminal and penal prosecuting attorney may refer a case to the provincial director or authorize prosecution of any offence committed while the young person has a case pending before the court or is serving or has already served a youth sentence as defined in section 2 of the Youth Criminal Justice Act (S.C. 2002, c. 1), in relation to an offence under the Criminal Code (R.S.C. 1985, c. C-46) or the Controlled Drugs and Substances Act (S.C. 1996, c. 19).